﻿#pragma once

#include "BCGPColorDialog.h" 
#include "BCGPColorComboBox.h"
#include "BCGPColorButton.h"
#include "MyColorButton.h"
#include "BCGPColorBar.h"
#include "BCGPPowerColorPicker.h"
#include "BCGPBrushButton.h"
#include "BCGPColorComboBox.h"
#include "MyColorBar.h"
#include "BCGPPropertyPage.h" 
#include "BCGPComboBox.h"
#include "BCGPVisualManagerXP.h"
#include "BCGPVisualManagerVS2010.h"
#include "BCGPVisualManager2007.h"
#include "BCGPVisualManager2010.h"
#include "BCGPVisualManagerCarbon.h"
#include "BCGPDialog.h"
#include "BCGPVisualManagerCarbon.h"
#include "CalendarPopup.h"
#include "BCGPVisualManager2007.h"
#include "BCGPVisualManager2010.h"
#include "BCGPVisualManagerVS2010.h"
#include "BCGPVisualManager2013.h"
#include "BCGPVisualManagerXP.h"

extern UINT BCGM_CHANGECOLOR;  

class ColorDialog : public CBCGPPropertyPage
{
	DECLARE_DYNAMIC(ColorDialog)

public:
	ColorDialog(CWnd* pParent = nullptr);
	virtual ~ColorDialog();

#ifdef AFX_DESIGNLIME
	enum { IDD = IDD_DLG_COLOR };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);
	virtual BOOL OnInitDialog();
	DECLARE_MESSAGE_MAP()

public:
	afx_msg void OnClickedBtnColor();
	afx_msg void OnClickedBtnColorCircle();
	afx_msg void OnClickedBtnColorPicker();
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnClickedBtnColorButton2();
	afx_msg void OnClickedBtnColorbar2();
	afx_msg void OnClickedBtnColorButton4();
	afx_msg void OnStnClickedStaticColorbar();
	void ApplyTheme(const CString& csThemeName);
	void OnSelChangeCmbChangeTheme();
public:
	CMyColorButton m_autoCorlorbtn;      
	COLORREF m_clrCurrent;               
	CBCGPColorBar m_colorBar;               
	COLORREF m_selectedColor;           
	CBCGPColorPickerCtrl m_wndColorPicker;
	CBCGPColorPickerCtrl m_wndLuminancePicker;
	CBCGPColorPickerCtrl m_wndHuePicker;
	CBCGPBrushButton m_btnBrush;
	CBCGPColorComboBox m_btnCombox;
	CMyColorBar		m_wndColorBar2;
	CPalette		m_palColorPicker;
	CComboBox m_cmbTheme1;
};